<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>

<body>
  <div id="app">
    <div v-once>
      {{msg}}
    </div>
    <hr>
    <div v-html="msg" v-bind:id="msgId">
    </div>
    <hr>
    <button v-bind:disabled="isDisabled">按钮</button>
    <hr>
    {{1+2+3}}
    <hr>
    {{true?"hello":"world"}}
    <hr>
    {{message.split('').reverse().join('')}}

  </div>
  <script>
    var vm = new Vue({
      el: "#app",
      data: {
        message:"helloworld",
        msg: "<h1>helloworld</h1>",
        msgId:'container',
        isDisabled:true,
        cities: [{ name: "太原", num: 800 }, { name: "北京", num: 3000 }]
      }
    })

  </script>

</body>

</html>